package com.briup.recognition.api;

import com.baidu.aip.imageclassify.AipImageClassify;

public class AipImageClient {
	//设置APPID/AK/SK
    public static final String APP_ID = "22788572";
    public static final String API_KEY = "gDjq3kdOXQXiA1XMM5qoKMNc";
    public static final String SECRET_KEY = "bOCcLzPRcGXe6guqi4yON19ho1qj67B0";

	// 2.本类内部创建对象实例
	private static AipImageClassify instance = null;

	/**
	 * 1.构造方法私有化，外部不能new
	 */
	private AipImageClient() {}

	// 3.提供一个公有的静态方法，返回实例对象
	public static AipImageClassify getInstance() {
		if (instance == null) {
			instance =  new AipImageClassify(APP_ID, API_KEY, SECRET_KEY);
			
		}
		return instance;
	}

}
